package com.tutorial.springboot.repository;

import com.tutorial.springboot.document.Post;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * Created by louchen on 2016/11/18.
 */
public interface PostRepository extends ElasticsearchRepository<Post, String> {

    Post findByTitle(String title);

    List<Post> findByTitleLike(String title);

}